---
title: "Filesystems"
slug: /cookbook/filesystems
description: "Learn how to mount or copy directories and remote repositories to containers using Dagger."
---

import CloneRemoteGit from "@cookbookFilesystem/_clone-remote-git.mdx";
import MountCopyDirectory from "@cookbookFilesystem/_mount-copy-directory.mdx";
import ModifyCopiedDirectory from "@cookbookFilesystem/_modify-copied-directory.mdx";
import CopySubsetDirectory from "@cookbookFilesystem/_copy-subset-directory.mdx";
import CopyPredefinedFilters from "@cookbookFilesystem/_copy-predefined-filters.mdx";
import ExportDirectoryOrFileToHost from "@cookbookFilesystem/_export-directory-or-file-to-host.mdx";
import MountCopyFile from "@cookbookFilesystem/_mount-copy-file.mdx";
import CopyFileRuntime from "@cookbookFilesystem/_copy-file-runtime.mdx";
import RequestFileHttp from "@cookbookFilesystem/_request-file-http.mdx";
import SetModuleDefault from "@cookbookFilesystem/_set-module-default.mdx";

This page contains practical examples for working with files and directories in Dagger. Each section below provides code examples in multiple languages and demonstrates different approaches to filesystem operations.

<CloneRemoteGit />

<MountCopyDirectory />

<ModifyCopiedDirectory />

<CopySubsetDirectory />

<CopyPredefinedFilters />

<MountCopyFile />

<CopyFileRuntime />

<ExportDirectoryOrFileToHost />

<RequestFileHttp />

<SetModuleDefault />
